package com.sample;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.swak.App;
import com.swak.vertx.config.RouterConfig;
import com.swak.vertx.security.SecurityHandler;
import com.swak.vertx.transport.VertxProxy;

/**
 * 系统使用资源配置
 * 
 * @author: lifeng
 * @Date: 2020/3/28 11:48
 */
@Configuration
public class AppConfiguration {

	/**
	 * 网站自定义的路由配置， 可以配置多个
	 *
	 * @return IRouterConfig
	 */
	@Bean
	public RouterConfig routerConfig(App app, VertxProxy proxy, SecurityHandler security) {
		return RouterConfig.defConfig(app, proxy, security);
	}
}